import moment from "moment";
// moment.locale('zh-cn')

export function time(date: string) {
  return moment(date, "YYYYMMDD").fromNow()
}

export function YYYY_MM_DD(date: string) {
  return moment(date).format('YYYY-MM-DD HH:MM:SS')
}

export function YYYY_MM(date: string) {
  return moment(date).format('MM-DD ')
}
